<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>京东搜索框</title>
  <style>
    .input-wrap {
      position: relative;
      width: 400px;
      height: 40px;
      margin: 100px auto;
    }

    .auto-kw {
      position: absolute;
      left: 6px;
      top: 12px;
      color: #989898;
      z-index: -1;
    }

    .auto-kw.show {
      display: block;
      color: #989898;
    }

    .auto-kw.hide {
      display: none;
      color: #666;
    }

    .search-input {
      outline: none;
      width: 100%;
      height: 100%;
      color: #424242;
      border: 1px solid #ccc;
      background-color: transparent;
      text-indent: 4px;
      font-size: 16px;
    }
  </style>
</head>
<body>
  <div class="input-wrap">
    <div class="auto-kw" id="J_autoKw">推荐词</div>
    <input type="text" id="J_search_kw" class="search-input" />
  </div>
  <div style="display: none;" id="J_recomkw">
    ["苍井空", "桥本有菜", "樱井莉亚"]
  </div>

  <script src="./js/utils.js"></script>
  <script src="./js/index.js"></script>
</body>
</html>